
    <script>
        $(
            function () {
                /*时间和日历*/
                let time_ = $('#time');
                let date_ = $('#date');
                setInterval(function () {
                    let nowTime = NowTime();
                    time_.text(nowTime);
                }, 1000);

                let daysArr = getDays();
                let Str = '';
                for (let i = 0; i < daysArr.length; i++) {
                    if (getToday() === daysArr[i]) {
                        Str += `<span class="day today"><em>${daysArr[i]}</em></span>`;
                    } else {
                        Str += `<span class="day">${daysArr[i]}</span>`;
                    }


                }
                date_.html(Str + "<button id=\"btn\">切换主题</button>");

                $('#btn').click(function () {
                    $('body').toggleClass('night');
                });



            }
        );


    </script>

    <style>

        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }

        .day {
            background-color: rgba(255,255,255,1);

        }

        .night {
            background-color: rgba(0, 0, 0, 0.8);
        }

        #content {
            width: 100%;
            height: 400px;
            border: 3px solid gold;
            display: flex;
            flex-direction: column;
            border-radius: 10px;
            position: relative;
        }

        #time {
            flex: 1;
            text-align: center;
            font-size: 25px;
            line-height: 67px;
            color: aqua;
        }

        #content svg{
            position: absolute;
            left: 0;
            {#top:30px;#}
            top:8%;
            font-size: 50px;
        }
         #content svg:nth-child(2){
             font-size: 30px;
             left: 11%;
             top:12%;
         }


        #date {
            flex: 5;

        }

        #date .day {
            width: 20%;
            height: 13%;
            border: 1px solid gold;
            float: left;
            text-align: center;
            line-height: 43px;
            background-color: #252427;
            font-size: 16px;
            font-weight: 700;
            color: aquamarine;
        }

        #date .day:nth-child(1),
        #date .day:nth-child(6),
        #date .day:nth-child(11),
        #date .day:nth-child(16),
        #date .day:nth-child(21),
        #date .day:nth-child(26) {
            border-left: none;
        }

        #date .day:nth-child(5),
        #date .day:nth-child(10),
        #date .day:nth-child(15),
        #date .day:nth-child(20),
        #date .day:nth-child(25),
        #date .day:nth-child(30) {
            border-right: none;
        }

        #date .day:nth-child(26),
        #date .day:nth-child(27),
        #date .day:nth-child(28),
        #date .day:nth-child(29),
        #date .day:nth-child(30),
        #date .day:nth-child(31) {
            border-bottom: 2px solid gold;
        }


        #date .today {
            background-color: aqua;
            color: green;
            font-size: 1.5rem;

        }

        #hr {
            width: 100%;
            height: 5px;
            background-color: gold;
        }

        #btn {
            position: absolute;
            bottom: 10px;
            right: 10px;
        }


    </style>
<div id="content">
    <svg class="icon" aria-hidden="true">
  <use xlink:href="#icon-kafei"></use>
</svg>
    <svg class="icon" aria-hidden="true">
  <use xlink:href="#icon-kafei"></use>
</svg>
    <div id="time"></div>
    <div id="hr"></div>
    <div id="date">
    </div>
</div>


